﻿using VNet.VisiSuite.Common.Resource;
using VNet.VisiSuite.Service.Contact.Message.Base;

namespace VNet.VisiSuite.BusinessLogic.BusinessException
{
    public static class BusinessLogicError
    {
        public static ServiceError LoginFailed = new ServiceError("Error 01", ErrorMessages.LoginFailed);
        public static ServiceError LogOutFailed = new ServiceError("Error 02", ErrorMessages.LogOutFailed);
        public static ServiceError GetAreaFailed = new ServiceError("Error 03", ErrorMessages.GetAreaFailed);
        public static ServiceError GetPlantFailed = new ServiceError("Error 04", ErrorMessages.GetPlantFailed);
        public static ServiceError GetCellFailed = new ServiceError("Error 05", ErrorMessages.GetCellFailed);
        public static ServiceError DuplicatedUsername = new ServiceError("Error 06", ErrorMessages.DuplicatedUsername);
        public static ServiceError InsertUserFailed = new ServiceError("Error 07", ErrorMessages.InsertUserFailed);
        public static ServiceError GetUserFailed = new ServiceError("Error 08", ErrorMessages.GetUserFailed);
        public static ServiceError UpdateUserFailed = new ServiceError("Error 09", ErrorMessages.UpdateUserFailed);
        public static ServiceError UserDoesNotExist = new ServiceError("Error 10", ErrorMessages.UserDoesNotExist);
        public static ServiceError UpdatePlantFailed = new ServiceError("Error 11", ErrorMessages.UpdatePlantFailed);
        public static ServiceError GetAreaShiftFailed = new ServiceError("Error 12", ErrorMessages.GetAreaShiftFailed);
        public static ServiceError CannotUpdateAreaShift = new ServiceError("Error 13", ErrorMessages.CannotUpdateAreaShift);
        public static ServiceError CannotDeleteAreaShift = new ServiceError("Error 14", ErrorMessages.CannotDeleteAreaShift);
        public static ServiceError UpdateAreaShiftFailed = new ServiceError("Error 15", ErrorMessages.UpdateAreaShiftFailed);
        public static ServiceError AreaShiftDoesNotExist = new ServiceError("Error 16", ErrorMessages.AreaShiftDoesNotExist);
        public static ServiceError DeleteAreaShiftFailed = new ServiceError("Error 17", ErrorMessages.DeleteAreaShiftFailed);
        public static ServiceError DeleteLaunchApplicationFailed = new ServiceError("Error 18", ErrorMessages.DeleteLaunchApplicationFailed);
        public static ServiceError GetLaunchApplicationFailed = new ServiceError("Error 19", ErrorMessages.GetLaunchApplicationFailed);
        public static ServiceError UpdateLaunchApplicationFailed = new ServiceError("Error 20", ErrorMessages.UpdateLaunchApplicationFailed);
        public static ServiceError LaunchApplicationDoesNotExist = new ServiceError("Error 21", ErrorMessages.LaunchApplicationDoesNotExist);
        public static ServiceError GetReasonCodeFailed = new ServiceError("Error 22", ErrorMessages.GetReasonCodeFailed);
        public static ServiceError GetRollupDefinitionsAsSourceFailed = new ServiceError("Error 23", ErrorMessages.GetRollupDefinitionsAsSourceFailed);
        public static ServiceError ReasonCodeDoesNotExist = new ServiceError("Error 24", ErrorMessages.ReasonCodeDoesNotExist);
        public static ServiceError UpdateReasonCodeFailed = new ServiceError("Error 25", ErrorMessages.UpdateReasonCodeFailed);
        public static ServiceError InsertReasonCodeFailed = new ServiceError("Error 26", ErrorMessages.InsertReasonCodeFailed);
        public static ServiceError DeleteReasonCodeFailed = new ServiceError("Error 27", ErrorMessages.DeleteReasonCodeFailed);
        public static ServiceError InsertAreaShiftFailed = new ServiceError("Error 28", ErrorMessages.InsertAreaShiftFailed);
        public static ServiceError GetRollupDefinitionsFailed = new ServiceError("Error 29", ErrorMessages.GetRollupDefinitionsFailed);
        public static ServiceError CannotDeleteRollupDefinition = new ServiceError("Error 29", ErrorMessages.CannotDeleteRollupDefinition);
        public static ServiceError RollupDefinitionDoesNotExist = new ServiceError("Error 30", ErrorMessages.RollupDefinitionDoesNotExist);
        public static ServiceError DeleteRollupDefinitionFailed = new ServiceError("Error 31", ErrorMessages.DeleteRollupDefinitionFailed);
        public static ServiceError InsertRollupDefinitionFailed = new ServiceError("Error 32", ErrorMessages.InsertRollupDefinitionFailed);
        public static ServiceError UpdateRollupDefinitionFailed = new ServiceError("Error 33", ErrorMessages.UpdateRollupDefinitionFailed);
        public static ServiceError GetScrapReasonCodeFailed = new ServiceError("Error 34", ErrorMessages.GetScrapReasonCodeFailed);
        public static ServiceError InsertScrapReasonCodeFailed = new ServiceError("Error 35", ErrorMessages.InsertScrapReasonCodeFailed);
        public static ServiceError ScrapReasonCodeDoesNotExist = new ServiceError("Error 36", ErrorMessages.ScrapReasonCodeDoesNotExist);
        public static ServiceError UpdateScrapReasonCodeFailed = new ServiceError("Error 37", ErrorMessages.UpdateScrapReasonCodeFailed);
        public static ServiceError DeleteScrapReasonCodeFailed = new ServiceError("Error 38", ErrorMessages.DeleteScrapReasonCodeFailed);
        public static ServiceError InsertLaunchApplicationFailed = new ServiceError("Error 39", ErrorMessages.InsertLaunchApplicationFailed);
        public static ServiceError MoveLaunchApplicationFailed = new ServiceError("Error 40", ErrorMessages.MoveLaunchApplicationFailed);
        public static ServiceError MoveRollupDefinitionFailed = new ServiceError("Error 41", ErrorMessages.MoveRollupDefinitionFailed);
        public static ServiceError PlantDoesNotExist = new ServiceError("Error 42", ErrorMessages.PlantDoesNotExist);
        public static ServiceError InsertPlantFailed = new ServiceError("Error 43", ErrorMessages.InsertPlantFailed);
        public static ServiceError DeletePlantFailed = new ServiceError("Error 44", ErrorMessages.DeletePlantFailed);
        public static ServiceError AreaDoesNotExist = new ServiceError("Error 45", ErrorMessages.AreaDoesNotExist);
        public static ServiceError UpdateAreaFailed = new ServiceError("Error 46", ErrorMessages.UpdateAreaFailed);
        public static ServiceError InsertAreaFailed = new ServiceError("Error 47", ErrorMessages.InsertAreaFailed);
        public static ServiceError DeleteAreaFailed = new ServiceError("Error 48", ErrorMessages.DeleteAreaFailed);
        public static ServiceError UpdateCellFailed = new ServiceError("Error 49", ErrorMessages.UpdateCellFailed);
        public static ServiceError InsertCellFailed = new ServiceError("Error 50", ErrorMessages.InsertCellFailed);
        public static ServiceError DeleteCellFailed = new ServiceError("Error 51", ErrorMessages.DeleteCellFailed);
        public static ServiceError CellDoesNotExist = new ServiceError("Error 52", ErrorMessages.CellDoesNotExist);
        public static ServiceError ConfigureFailed = new ServiceError("Error 53", ErrorMessages.ConfigureFailed);
        public static ServiceError SyncClientServerError = new ServiceError("Error 54", ErrorMessages.SyncClientServerError);
        public static ServiceError InvalidCellPassword = new ServiceError("Error 55", ErrorMessages.InvalidCellPassword);
        public static ServiceError GetProductsFailed = new ServiceError("Error 56", ErrorMessages.GetProductsFailed);
        public static ServiceError InsertProductFailed = new ServiceError("Error 57", ErrorMessages.InsertProductFailed);
        public static ServiceError ProductDoesNotExist = new ServiceError("Error 58", ErrorMessages.ProductDoesNotExist);
        public static ServiceError UpdateProductFailed = new ServiceError("Error 59", ErrorMessages.UpdateProductFailed);
        public static ServiceError ProductNameExisted = new ServiceError("Error 60", ErrorMessages.ExistedProductName);
        public static ServiceError ImportProductsFailed = new ServiceError("Error 61", ErrorMessages.ImportProductsFailed);
        public static ServiceError GetProductionPlansFailed = new ServiceError("Error 62", ErrorMessages.GetProductionPlansFailed);
        public static ServiceError InsertProductionPlanFailed = new ServiceError("Error 63", ErrorMessages.InsertProductionPlanFailed);
        public static ServiceError ProductionPlanDoesNotExist = new ServiceError("Error 64", ErrorMessages.ProductionPlanDoesNotExist);
        public static ServiceError UpdateProductionPlanFailed = new ServiceError("Error 65", ErrorMessages.UpdateProductionPlanFailed);
        public static ServiceError WorkOrderExist = new ServiceError("Error 66", ErrorMessages.WorkOrderExist);
        public static ServiceError DeleteProductionPlanFailed = new ServiceError("Error 67", ErrorMessages.DeleteProductionPlanFailed);
        public static ServiceError GetProductionPlanReferenceFailed = new ServiceError("Error 68", ErrorMessages.GetProductionPlanReferenceFailed);
        public static ServiceError ImportProductionPlansFailed = new ServiceError("Error 69", ErrorMessages.ImportProductionPlansFailed);
        public static ServiceError GetAlarmSettingsFailed = new ServiceError("Error 70", ErrorMessages.GetAlarmSettingsFailed);
        public static ServiceError InsertAlarmSettingFailed = new ServiceError("Error 71", ErrorMessages.InsertAlarmSettingFailed);
        
        public static ServiceError AlarmSettingDoesNotExist = new ServiceError("Error 72", ErrorMessages.AlarmSettingDoesNotExist);
        public static ServiceError UpdateAlarmSettingFailed = new ServiceError("Error 73", ErrorMessages.UpdateAlarmSettingFailed);
        public static ServiceError DeleteAlarmSettingFailed = new ServiceError("Error 74", ErrorMessages.DeleteAlarmSettingFailed);
        public static ServiceError DeleteProductFailed = new ServiceError("Error 75", ErrorMessages.DeleteProductFailed);
        public static ServiceError DeleteUsertFailed = new ServiceError("Error 76", ErrorMessages.DeleteUserFailed);
        public static ServiceError GetScheduledDowntimeFailed = new ServiceError("Error 77", ErrorMessages.GetScheduledDowntimeFailed);
        public static ServiceError InsertScheduleFailed = new ServiceError("Error 78", ErrorMessages.InsertScheduledDowntimeFailed);
        public static ServiceError ScheduledDowntimeDoesNotExist = new ServiceError("Error 79", ErrorMessages.ScheduledDowntimeDoesNotExist);
        public static ServiceError UpdateScheduledDowntimeFailed = new ServiceError("Error 80", ErrorMessages.UpdateScheduledDowntimeFailed);
        public static ServiceError DeleteScheduledDowntimeFailed = new ServiceError("Error 81", ErrorMessages.DeleteScheduledDowntimeFailed);

        public static ServiceError GetScheduleRepeatFailed = new ServiceError("Error 82", ErrorMessages.GetScheduleRepeatFailed);
        public static ServiceError InsertScheduleRepeatFailed = new ServiceError("Error 83", ErrorMessages.InsertScheduleRepeatFailed);
        public static ServiceError ScheduleRepeatDoesNotExist = new ServiceError("Error 84", ErrorMessages.ScheduleRepeatDoesNotExist);
        public static ServiceError UpdateScheduleRepeatFailed = new ServiceError("Error 85", ErrorMessages.UpdateScheduleRepeatFailed);
        public static ServiceError DeleteScheduleRepeatFailed = new ServiceError("Error 86", ErrorMessages.DeleteScheduleRepeatFailed);



    }
}